const http = uni.$uv.http

// H5商户id
export const getAlternativeSuppliers = (data) => http.get('/nfc/deviceInfo/getDeviceInfoByCode', {
	params: data
})
// H5商户信息
export const getMerchantH5Info = (data) => http.get('/nfc/merchantH5Info/getH5Info', {
	params: data
})

// H5查询打卡评论列表
export const getCommentInfo = (data) => http.get('/nfc/commentInfo/list', {
	params: data
})

// H5查询视频素材列表
export const getVideoInfo = (data) => http.get('/nfc/videoInfo/list', {
	params: data
})

// 获取商家信息详细信息
export const getMerchantInfo = (data) => http.get('/nfc/merchantInfo/getInfo', {
	params: data
})
// 获取用户信息详细信息
export const getUserInfo = (data) => http.get("/nfc/newUserInfo/" + data);

// 修改商家信息详细信息
export const updateInfo = (data, config = {}) => http.post('/nfc/merchantInfo/updateInfo', data, config)


// 商户配置
export const merchantChannel = (data, config = {}) => http.post('/nfc/merchantGrassPlantingChannel/add', data, config)

// 查询点评素材列表
export const getCommentMaterialInfo = (data) => http.get('/nfc/commentInfo/list', {
	params: data
})

// 查询视频素材列表
export const getVideoMaterialInfo = (data) => http.get('/nfc/videoInfo/list', {
	params: data
})
// 新增点评素材
export const commentInfo = (data, config = {}) => http.post('/nfc/commentInfo', data, config)

// 新增视频内容管理
export const addVideoInfo = (data, config = {}) => http.post('/nfc/videoInfo', data, config)

// 查询轮播图列表
export const getCarouselImage = (data, config = {}) => http.post('/nfc/carouselImage/queryList', data, config)

// 新增轮播图
export const addCarouselImage = (data, config = {}) => http.post('/nfc/carouselImage/add', data, config)

// 删除轮播图
export const removeCarouselImage = (data) => http.get('/nfc/carouselImage/remove', {
	params: data
})

// 查询商户渠道
export const getMerchantGrass = (data) => http.get('/nfc/merchantGrassPlantingChannel/queryList', {
	params: data
})

// 获取视频内容管理详细信息
export const getIsVideoInfo = (data) => http.get('/nfc/videoInfo/query', {
	params: data
})

// 获取内容管理详细信息
export const getIsCommentInfo = (data) => http.get('/nfc/commentInfo/query', {
	params: data
})

// 获取小红书信息
export const getRedBook = (data) => http.get('/nfc/redBook/getInfo', {
	params: data
})

// 获取scheme 码
export const getWxSchemeInfo = (data, config = {}) => http.post('/nfc/wx/getSchemeInfo', data, config)

// 修改商户渠道
export const updateSwitchStatus = (data, config = {}) => http.post('/nfc/merchantGrassPlantingChannel/updateSwitchStatus', data, config)

// 查询优惠券列表
export const getCouponList = (data) => http.get('/nfc/couponInfo/list', {
	params: data
})

// 新增优惠券
export const addCoupon = (data, config = {}) => http.post("/nfc/couponInfo", data, config);

// 查询我的优惠券列表
export const getMyCouponList = (data) =>http.get("/nfc/coupon/user/queryMyCoupon/" + data);


// 领取优惠券
export const getCoupon = (data, config = {}) =>http.post("/nfc/coupon/user/getCoupon", data, config);